package gfyx_crm_log

import (
	"context"
	"git.mycaigou.com/gfyx/common/tenant_db"
)

type gfyxCrmLogRepos struct {
	tenant_db.TenantDB
}

func NewGfyxCrmLogRepos() GfyxCrmLogRepositoryIface {
	return &gfyxCrmLogRepos{}
}

func (g *gfyxCrmLogRepos) Save(ctx context.Context, po *GfyxCrmLogPo) error {
	return g.GetTenantDB(ctx).Table(po.TableName()).Create(po).Error
}
